function LoadFunction() {
    layer.msg('加载中', {
        icon: 16
        ,shade: 0.01
    });
}

function errorFunction() {
    layer.msg("出错了");
}

function succFunction(tt) {
    console.log(tt);
    if (tt.status === 200){
        layer.msg("登录成功");
        // setTimeout('delayer()',1000);
        window.location.href = "/library/admin/page/index";
    }else {
        layer.msg(tt.message);
    }
}

//回车键登陆
$(function () {
    $(document).keydown(function (e) {
        if (e.keyCode === 13) {
            // 登录按钮的id必须是loginBtn
            $("#loginBtn").click();
        }
    });
});